<aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
        <!-- Sidebar user panel -->
        <div class="user-panel">
            <div class="pull-left image">
                <img src="${base}/dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
            </div>
            <div class="pull-left info">
                <p>${(user.department.name)!}-${(user.userName)!}</p>
                <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
            </div>
        </div>

        <!-- /.search form -->
        <!-- sidebar menu: : style can be found in sidebar.less -->
        <ul class="sidebar-menu" data-widget="tree">




            <#if Session["menus"]?exists>

                <#list Session["menus"] as menu >
                    <li class="${nav.active_pre('${menu.validPath}',path)} treeview">
                        <a href="#">
                            <i class="fa fa-pie-chart"></i>
                            <span>${(menu.menuname)!}</span>
                            <span class="pull-right-container">
                                <i class="fa fa-angle-left pull-right"></i>
                            </span>
                        </a>
                        <#if menu.menus??>
                            <ul class="treeview-menu">
                                <#list menu.menus as zm>
                                    <li class="${nav.active('${zm.validPath}',path)}">
                                        <a href="${base}/${(zm.url)!}">
                                            <i class="fa fa-circle-o"></i>
                                            ${(zm.menuname)!}
                                        </a>
                                    </li>
                                </#list>
                            </ul>
                        </#if>
                    </li>
                </#list>
            </#if>
        </ul>
    </section>
    <!-- /.sidebar -->
</aside>